Fix problems in computing MISSING hint.
authorOwen Taylor <otaylor@redhat.com>
Mon, 28 Jan 2002 17:25:14 +0000 (17:25 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 28 Jan 2002 17:25:14 +0000 (17:25 +0000)
Mon Jan 28 12:17:07 2002  Owen Taylor  <otaylor@redhat.com>

        * pixbuf-render.c (compute_hint): Fix problems in computing
        MISSING hint.

modules/engines/pixbuf/ChangeLog
modules/engines/pixbuf/pixbuf-render.c

index b1cc574825ec978a60aff2693201bd18b57a837c..d98ef9689e1f65718f6eac4c0b2682705ea0165a 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jan 28 12:17:07 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * pixbuf-render.c (compute_hint): Fix problems in computing
+       MISSING hint.
+
 Sun Jan 27 23:58:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * pixbuf-render.c (compute_hint): Optimize the case
index d34632b23645fa66bef7edffdd63e0d5da47f0a3..8d4f41fc5b02ad6f82e76db66b263d349f20631d 100644 (file)
@@ -344,9 +344,9 @@ compute_hint (GdkPixbuf *pixbuf,
       if (n_channels == 4)
        a = *(p++);
 
-      for (j = x0 + 1; j < x1 ; j++)
+      for (j = x0; j < x1 ; j++)
        {
-         if (n_channels != 4 || p[4] != 0)
+         if (n_channels != 4 || p[3] != 0)
            {
              hints &= ~THEME_MISSING;
              if (!(hints & THEME_CONSTANT_ROWS))